package com.project.entity.atricle;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.dtyunxi.dto.BaseDto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Entity
@Table(name="B_CATEGORY")
@ApiModel(value="类别信息")
public class Category extends BaseDto{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 7863926226674148826L;

	@ApiModelProperty(value="名称")
	@Column
	private String name;//名称
	
	@ApiModelProperty(value="类别(1:一级;2:二级)")
	@Column
	private String level;//类别(1:一级;2:二级)
	
	@ApiModelProperty(value="父级id")
	@Column
	private Long parentId;//父级id
	
	@ApiModelProperty(value="状态（0、禁用、1、启用）")
	@Column
	private String status;//状态（0、禁用、1、启用）
	
	@ApiModelProperty(value="创建人")
	@Column
	private String createUser;//创建人
	
	@ApiModelProperty(value="创建时间")
	@Column
	private Date createTime;//创建时间
	
	@ApiModelProperty(value="修改人")
	@Column
	private String updateUser;//修改人
	
	@ApiModelProperty(value="修改时间")
	@Column
	private Date updateTime;//修改时间

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	
}
